<%@page import="department.fc.domain.Department"%>
<%@ page contentType="text/html; charset=UTF-8"%>

<jsp:useBean id="list" class="java.util.ArrayList" scope="request"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<h2>부서목록</h2>
<table width="500">
<tr>
	<td>부서ID</td>
	<td>부서명</td>
	<td>지역</td>
	<td>삭제</td>
	<td>수정</td>
</tr>

<%
for(Object obj : list){
	Department dept = (Department)obj;
%>
<tr>
	<td><%=dept.getDepartmentId() %></td>
	<td><%=dept.getDepartmentName()%></td>
	<td><%=dept.getLocation() %></td>
	<td><a href="/DepartmentManagerFC_stu/RemoveDepartmentController?departmentId=<%=dept.getDepartmentId() %>">삭제</a></td>
	<td><a href="/DepartmentManagerFC_stu/ModifyDepartmentFormController?departmentId=<%=dept.getDepartmentId() %>">수정</a></td>
</tr>

<%} %>
</table>
<a href="/DepartmentManagerFC_stu/index.">메인페이지</a>
<a href="/DepartmentManager/register_form.html">부서 등록 폼</a><br>


</body>
</html>